home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / libg_261.zip / libg_261 / libiberty / functions.def < prev    next >
Text File  |  1994-10-11  |  3KB  |  65 lines

  1. /*
  2.  * List of function definitions that may *optionally* be included
  3.  * in libiberty.a.  The function names must match the filenames,
  4.  * e.g. bzero() is defined in bzero.c.  (While each file can contain
  5.  * extra functions, do not list them.)
  6.  *
  7.  * In the default libiberty configuration, these object files
  8.  * (e.g bzero.o) are included if and only if cc fails to find
  9.  * the corresponding function in libc.
  10.  */
  11.  
  12. DEF(bcmp, int, (s1, s2, length), char *s1 AND char *s2 AND int length )
  13. DEF(bcopy, void, (s1, s2, length), char *s1 AND char *s2 AND int length )
  14. DEF(bzero, void, (s, length), char *s AND int length)
  15. DEF(clock, clock_t, (), NOTHING)
  16. DEF(getopt, int, (argc, argv, optstring),
  17.     int argc AND char **argv AND CONST char *optstring)    
  18. DEF(getpagesize, int , (), NOTHING)
  19. DEF(getcwd, char*, (buf, len), char *buf AND int len)
  20. DEF(index, char*, (s, c), char *s AND int c)
  21. DEF(insque, void, (), NOTHING)
  22. DEF(memchr, PTR, (s, c, length), CONST PTR s AND int c AND size_t length)
  23. DEF(memcmp, int, (s1, s2, length),
  24.     CONST PTR s1 AND CONST PTR s2 AND size_t length)
  25. DEF(memcpy, PTR, (s1, s2, length), PTR s1 AND CONST PTR s2 AND size_t length)
  26. DEF(memmove, PTR, (s1, s2, length), PTR s1 AND CONST PTR s2 AND size_t length)
  27. DEF(memset, PTR, (s, val, length), PTR s AND int val AND size_t length )
  28. DEF(random, long int, (), NOTHING)
  29. DEF(rename, int, (f, t), char *f AND char *t)
  30. DEF(rindex, char*, (s, c), char *s AND int c)
  31. DEF(strcasecmp, int, (s1, s2), char *s1 AND char *s2)
  32. DEF(strncasecmp, int, (s1, s2, n), char *s1 AND char *s2 AND int n)
  33. DEF(strchr, char*, (s, c), CONST char *s AND int c)
  34. DEF(strdup, char*, (s1), char * s1)
  35. DEF(strrchr, char*, (s, c), CONST char *s AND int c)
  36. DEF(strstr, char*, (), NOTHING)
  37. DEF(strtod, double, (), NOTHING)
  38. DEF(strtol, long, (), NOTHING)
  39. DEF(strtoul, unsigned long, (), NOTHING)
  40. DEF(tmpnam, char *, (s), char * s)
  41. DEF(vfork, int, (), NOTHING)
  42. DEF(vfprintf, int, (), NOTHING)
  43. DEF(vprintf, int, (), NOTHING)
  44. DEF(vsprintf, int, (), NOTHING)
  45. DEF(sigsetmask, int, (), NOTHING)
  46. DEF(alloca, PTR, (size), size_t size)
  47. DEF(waitpid, int, (pid, statp, opts), int pid AND int* statp AND int opts )
  48.  
  49. /* List of global variables that we want to look for in the host
  50.    environment, and to generate an entry NEED_<variable> in config.h
  51.    if they are not found.  The first arg is the variable name, the
  52.    second arg is how to declare the variable, and the third is how to
  53.    use it. */
  54.  
  55. DEFVAR(sys_nerr, int sys_nerr, sys_nerr = 0)
  56. DEFVAR(sys_errlist, char *sys_errlist[], sys_errlist[0] = 0)
  57. DEFVAR(sys_siglist, char *sys_siglist[], sys_siglist[0] = 0)
  58.  
  59. /* List of global functions that we want to look for in the host
  60.    environment, and to generate an entry NEED_<funcname> in config.h
  61.    if they are not found. */
  62.  
  63. DEFFUNC(strerror, char*, (), NOTHING)
  64. DEFFUNC(psignal, void, (signo, message), unsigned signo AND char *message)
  65.